package com.cn.springcloudwechat.service;

import com.cn.springcloudwechat.model.YmAnswer;
import com.cn.springcloudwechat.model.find.communication.YmAnswerVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface YmAnswerService {

    /**
     * 回复数量查询
     * @param typeId
     * @param type
     * @return
     */
    Long getAnswerQuantity(Long typeId, Integer type);

    /**
     * 问医生-快速提问
     * @param ymAnswer
     * @return
     */
    public String[] insertYmAnswer(YmAnswer ymAnswer, Long doctorId);

    /**
     * 问医生-问题回复
     * @param ymAnswer
     * @return
     */
    public String[] insertYmAnswerReply(YmAnswer ymAnswer);

    /**
     * 问医生-问题回复
     * @param answerId
     * @return
     */
    public Integer deleteYmAnswer(Long answerId);

    /**
     * 问医生-向指定医生提问
     * @param
     * @return List<YmAnswer>
     */
    public Integer insertYmAnswerByDoctorId(YmAnswer ymAnswer);

    /**
     * 问医生-根据answerUserId查询当前用户的所有提问
     * @param type
     * @return List<YmAnswer>
     */
    public List<Map<String,Object>> queryYmAnswersByAnswerUserId(Integer type);

    /**
     * 问医生-根据typeId和answerUserId查询当前用户提问医生的回复明细
     * @param typeId,answerUserId,
     * @return List<Map<String,Object>>
     */
    public Map<String,Object> queryYmAnswerListDetail(Long typeId, Long answerId, String praiseType);

    /**
     * 问医生-根据answerUserId查询当前用户的所有提问
     * @param answerUserId,answerUserId,type
     * @return List<YmAnswer>
     */
    public List<Map<String,Object>> queryYmAnswerDetailByAnswerUserId(Long typeId,Long answerUserId, Integer type);

    /**
     * 问医生-根据answerId和typeId查询当前用户提问医生的回复
     * @param typeId,,answerId,type
     * @return List<YmAnswer>
     */
    public List<YmAnswer> queryYmAnswerDetailByTypeId(Long typeId,Long answerUserId, Integer type);

    /**
     * 问医生-查询属于当前医生的所有提问
     * @param typeId,,answerId,type
     * @return List<YmAnswer>
     */
    public List<YmAnswerVO> queryYmAnswerListByTypeId(Long typeId, Integer type, String praiseType);

}
